package com.yuyou.train.lesson.service;

import java.util.List;

import com.yuyou.train.service.api.lesson.dto.LessonClassDetailDTO;
import com.yuyou.train.service.api.lesson.dto.LessonClassPageDTO;
import com.yuyou.train.service.api.lesson.entity.LessonClass;
import com.yuyou.train.util.bean.Pagination;
import com.yuyou.train.util.bean.ResBoolSimpleInfo;

public interface ILessonClassService {
    int deleteByPrimaryKey(String id);

    ResBoolSimpleInfo<String> delLessonClass(String authUserId,String id);
    
    int insert(LessonClass record);

    LessonClass selectByPrimaryKey(String id);
    
    List<LessonClass> findClass();

    int updateByPrimaryKeySelective(LessonClass record);
    
    ResBoolSimpleInfo<LessonClass> addClass(String authUserId,LessonClass record,List<String> userIds);
    
    ResBoolSimpleInfo<String> operateClass(String authUserId,String id,String isUse);
    
    ResBoolSimpleInfo<LessonClass> updateClass(String authUserId,LessonClass record,List<String> userIds);
       
    LessonClassDetailDTO selectDetail(String authUserId,String id,String type);
    
    List<LessonClassPageDTO> findLessonClassPageList(Pagination<LessonClassPageDTO> p);
    
    int findLessonClassPageCount(Pagination<LessonClassPageDTO> p);
    
    LessonClass selectByCode(String code);

    List<LessonClass> findLessonClassByUserId(String userId);

    ResBoolSimpleInfo<String> areaDataLimit(String userId, String areaId);
}